package com.brick.controller;


import com.brick.service.TestUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/testBoot")
@RestController
public class TestUserContraller {
    @Autowired
    private TestUserService testUserService;

    @RequestMapping("getUser/{id}")
    public String GetUser(@PathVariable int id){
        return testUserService.Sel(id).toString();
    }
}
